package com.amit.Basic_Simple_Program;

public class Swap_String {

	public static void main(String[] args) {
		
		String s1="amit";
		String s2="yadav";
		
		System.out.println("firt String"+" "+s1);
		System.out.println("second String"+" "+s2);
		
		String temp="";
		
		temp=s1;
		s1=s2;
		s2=temp;
		
		System.out.println("firt String"+" "+s1);
		System.out.println("second String"+" "+s2);
		
		

	}

}
